import request from '@/utils/request'

const baseURL = '/sysRoleMenu'

// 角色绑定菜单
export function batchByRoleMenu (data) {
  return request({
    url: `${baseURL}/batchByRoleMenu`,
    method: 'post',
    data
  })
}

// 根据角色ID查询已绑定的菜单id列表
export function loadByRoleMenuList (roleId) {
  return request({
    url: `${baseURL}/loadByRoleMenuList`,
    params: {
      id: roleId
    }
  })
}
